package com.faradel.pharmapp.dao;

import java.util.List;
import java.util.Map;

import org.faradel.pharmapp.entities.PharmaUser;
import org.faradel.pharmapp.entities.PrescriptionOrder;
import org.hibernate.Criteria;
import org.springframework.stereotype.Repository;

@Repository("prescriptionOrderDaoImpl")
public class PrescriptionOrderDaoImpl extends GenericDAOImpl<PrescriptionOrder, Integer> implements PrescriptionOrderDAO
{

    @SuppressWarnings("unchecked")
    @Override
    public List<PrescriptionOrder> findByColumn(Map<String, String> map)
    {
        Criteria criteria = this.sessionFactory.getCurrentSession().createCriteria(PharmaUser.class);
        for (Map.Entry<String, String> mapEntry : map.entrySet())
        {

        }

        return criteria.list();
    }

}
